package org.wechat4j.model;

/**
 * @author bjliuyong
 * @version 1.0
 * @created date 16-11-8
 */
public class Response {

    private int errcode ;

    private String errmsg;

    public int getErrcode() {
        return errcode;
    }

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }



    public boolean isSuccess(){
        return errcode == ErrorCode.REQUEST_OK ;
    }


    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }
}
